import java.util.Scanner;

public class demo02 {
    //密码强度等级
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        String str=sc.nextLine();
        int bigzimu=0;
        int smallzimu=0;
        int shuzi=0;
        int fuhao=0;
        int sum=0;
        char[] arr=str.toCharArray();
        for (int i = 0; i < arr.length; i++) {
            if(arr[i]>='0'&&arr[i]<='9'){
                shuzi++;
            } else if (arr[i]>='a'&&arr[i]<='z') {
                smallzimu++;
            } else if (arr[i]>='A'&&arr[i]<='Z') {
                bigzimu++;
            } else {
                fuhao++;
            }
        }
        if(arr.length<=4){
            sum+=5;
        } else if (arr.length>=5&&arr.length<=7) {
            sum+=10;
        }else{
            sum+=25;
        }
        if((bigzimu+smallzimu)!=0){
            if(bigzimu==0||smallzimu==0){
                sum+=10;
            }else{
                sum+=20;
            }
        }
        if(shuzi!=0){
            if(shuzi==1){
                sum+=10;
            }else {
                sum+=20;
            }
        }
        if(fuhao!=0){
            if(fuhao==1){
                sum+=10;
            }else {
                sum+=25;
            }
        }
        if(bigzimu!=0&&smallzimu!=0&&shuzi!=0&&fuhao!=0){
            sum+=5;
        } else if ((bigzimu+smallzimu)!=0&&shuzi!=0&&fuhao!=0) {
            sum+=3;
        }else if ((bigzimu+smallzimu)!=0&&shuzi!=0&&fuhao==0){
            sum+=2;
        }
        if(sum>=90){
            System.out.println("VERY_SECURE");
        } else if (sum>=80) {
            System.out.println("SECURE");
        }else if (sum>=70) {
            System.out.println("VERY_STRONG");
        } else if (sum>=60) {
            System.out.println("STRONG");
        } else if (sum>=50) {
            System.out.println("AVERAGE");
        } else if (sum>=25) {
            System.out.println("WEAK");
        } else{
            System.out.println("VERY_WEAK");
        }
    }
}
